import request from "@/utils/request";

//获取订单列表
export function getOrders(params) {
  return request({
    method: "get",
    url: "/orders",
    params,
  });
}

//获取单个订单详情
export function getoneOrders(id) {
  return request({
    method: "get",
    url: `/orders/${id}`,
  });
}

//改变订单信息
export function putOrders(id, data) {
  return request({
    method: "PUT",
    url: `/orders/${id}`,
    data,
  });
}

//搜索订单
